#ifndef __GUIAPPEDIT_H__
#define __GUIAPPEDIT_H__

#include "guiappobj.h"

class GUIAppEdit: public GUIAppObject {
public:
	GUIAppEdit(int id, float x, float y, float w, hgeFont *fnt, char* str = "");

	char*			GetText();
	virtual void	Selected(bool bDown);
	virtual bool	KeyClick(int key, int chr);
	virtual void	Update(float dt);
	virtual void	Move(float dx, float dy );
	void			Render();
	
	void			SetTextColor(DWORD clr) {
		textColor = clr;
	}

	void			SetFrameColor(DWORD clr) {
		frameColor = clr;
	}

protected:
	DWORD			textColor;
	DWORD			frameColor;
	hgeFont*		m_Font;
	bool			m_Focus;
	int				m_Pos;
	char			m_Text[1024];
	float			m_Time;
	bool			m_Blink;
};

#endif
